/**
 * Created by mengxiaxia on 2016/12/18.
 */
var zhttApp=angular.module("zhttApp",[]);
/*zhttApp.run(function ($rootScope,$http) {
    $http.get($("iframe").attr("src")).then(function (data) {
        $rootScope.message=data.data;
    });
});
zhttApp.config(function ($routeProvider) {
    $routeProvider.
    when('/21架构', {
        templateUrl: 'embedded.home.html',
        controller: '21Controller'
    }).
    when('/about', {
        templateUrl: 'embedded.about.html',
        controller: 'AboutController'
    }).
    otherwise({
        redirectTo: '/home'
    });
});*/
$(function () {
    var ifm=$("iframe");
    ifm.load(function () {
        ifm.height($(ifm[0].contentDocument).height());
    });
});
